pp108 : Configuring Multiple Apache Instances

Configuring Multiple Apache Instances

This topic describes the procedure for configuring multiple instances of Apache Server.

Before you begin this task:
At least one instance of Process Platform must be configured in Apache.

By default, the Gateway is configured in LDAP as a single instance. You can create more than one instance of the Process Platform Web gateway.

  1. Set the following properties in the wcp.properties file:
    • com.eibus.web.gateway.maxinstances=n where n is the number of processes you want to create. Examplecom.eibus.web.gateway.maxinstances=2
    • com.eibus.web.gateway=webgateway@<machine name> (where webgateway@<machine name is the name of the LDAP entry used for configuration. If you do not want to use the default name, you can change the name). Examplecom.eibus.web.gateway=webgateway@srv-cordys-1w
  2. Create a new connection point for each new instance of the gateway. For information on creating a connection point, refer to Creating a Connection Point for a WebGateway Instance.
  3. In the Httpd.conf file, change only StartServers and ServerLimit from 1 to 10; see below:

    Attribute

    Description

    ServerLimit

    Specifies the number of processes that can be configured on a server

    StartServers

    Specifies the initial number of server processes to start

    MaxClients

    Specifies the maximum number of simultaneous client connections

    MinSpareThreads

    Specifies the minimum number of spare worker threads

    MaxSpareThreads

    Specifies the maximum number of spare worker threads

    ThreadsPerChild

    Specifies the constant number of worker threads in each server process

    MaxRequestsPerChild

    Specifies the maximum number of requests a server process serves

    The following is the example:

    <IfModule worker.c>
    	ServerLimit 10 
    	StartServers 3 
    	MaxClients 1500 
    	MinSpareThreads 200 
    	MaxSpareThreads 750 
    	ThreadsPerChild 200 
    	MaxRequestsPerChild 0 
    </IfModule>

    Note: These new instances that are being created must not be started or stopped frequently.

  4. Restart Apache(s).
    Apache will run with multiple instances or processes.

Related tasks

Configuring Web Gateway on Apache Server
Creating a Connection Point for a WebGateway Instance